<?php
namespace app\admin\controller;
use app\admin\model\SystemMenus;
use think\Db;
use think\facade\Config;
/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2020-05-22 16:38:22
 * @LastEditors: Sam
 * @LastEditTime: 2020-08-06 11:18:07
 */ 
class Index extends AuthController {
    /**
     * @name: 首页
     * @Author: Sam
     * @Date: 2020-05-22 16:39:48
     * @msg: 
     * @param {type} 
     * @return:          
     */
    public function index(){
        //获取当前登录后台的管理员信息
        $adminInfo = $this->adminInfo->toArray();
        $roles  = explode(',',$adminInfo['roles']);
        $menus  = Config::get('menus.');
        return $this->fetch();
    }

}

